home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 32 / tictacai.zip / TICTAC.H < prev    next >
C/C++ Source or Header  |  1990-06-17  |  2KB  |  115 lines

  1.  
  2. /*
  3.  * Misc. Constants
  4.  */
  5. #ifndef    ON
  6. #define    ON    1
  7. #endif
  8.  
  9. #ifndef    OFF
  10. #define    OFF    0
  11. #endif
  12.  
  13. /*
  14.  * Types used in the mouse interface
  15.  */
  16. /*
  17.  * This is used to define regions of the screen
  18.  */
  19. typedef    struct {
  20.     unsigned    char    ul_row;                /* Upper left row                */
  21.     unsigned    char    ul_col;                /* Upper left column            */
  22.     unsigned    char    lr_row;                /* Lower right row                */
  23.     unsigned    char    lr_col;                /* Lower right column            */
  24. } REGION;
  25.  
  26.  
  27. /****************************************************************************
  28.  *                M o u s e   h a n d l i n g   f u n c t i o n s                *
  29.  ****************************************************************************/
  30.  
  31.  
  32. /*
  33.  * Hook the mouse, return presence
  34.  */
  35. int        mouse_init(void);
  36.  
  37. /*
  38.  * Enable mouse processing
  39.  */ 
  40. void    mouse_on(void);
  41.  
  42. /*
  43.  * Disable mouse processing
  44.  */
  45. void    mouse_off(void);
  46.  
  47. /*
  48.  * Set mouse cursor bounds
  49.  */
  50. void    mouse_bounds(int ulrow, int ulcol, int lrrow, int lrcol);
  51.  
  52. /*
  53.  * Turn the mouse cursor on or off
  54.  */
  55. void    mouse_cursor(int on_off);
  56.  
  57. /*
  58.  * Return the mouse button state
  59.  */
  60. int        mouse_buttons(void);
  61.  
  62. /*
  63.  * Determine whether or not the mouse cursor is within a screen region
  64.  */
  65. int        mouse_in_region(REGION *region_list, int num_regions);
  66.  
  67.  
  68. /*
  69.  * Routines in ticlib.lib
  70.  */
  71.  
  72. #define    ON        1
  73. #define    OFF        0
  74. #define    UP        0
  75. #define    DOWN    1
  76.  
  77. /*
  78.  * Color definitions
  79.  */
  80. #define    C_BLACK        0
  81. #define    C_BLUE        1
  82. #define    C_GREEN        2
  83. #define    C_CYAN        3
  84. #define    C_RED        4
  85. #define    C_MAGENTA    5
  86. #define    C_BROWN        6
  87. #define    C_WHITE        7
  88.  
  89.  
  90. /*
  91.  * Window types for the new window routines
  92.  */
  93.  
  94. #define    W_SIMPLE    0
  95. #define    W_TBORDER    1
  96. #define    W_TSEP        2
  97.  
  98.  
  99. void background(int bg_color);
  100. void blinking(int on_or_off);
  101. void clear_below(void);
  102. void clear_eol(void);
  103. void clear_region(int ul_row, int ul_col, int lr_row, int lr_col);
  104. void cls(void);
  105. void foreground(int fg_color);
  106. void get_attrib(int *fg, int *bg, int *blink, int *intense);
  107. void gotoxy(int row, int col);
  108. void init_screen(void);
  109. char *int_asc(char *dest, int source, int radix);
  110. void intensity(int on_or_off);
  111. void out_char(int chr_to_put);
  112. void out_string(char *str_to_put);
  113. void set_cursor(int on_or_off);
  114. unsigned int tvinkey(char *valid_norm, char *valid_alt, unsigned short timeout);
  115.